package algorithm.test;

/**
 * @author LiShaowen
 * @date 2020/10/13 16:35
 */
public class JieCheng {
    public static int test(int num){

        if (num <= 2) {
            return num;
        }
        return num*test(num-1);
    }

    public static void main(String[] args) {
        System.out.println(test(4));
    }
}
